<template>
    <router-view></router-view>
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import { storeToRefs } from 'pinia'
import useLayoutStore from '@/stores/layoutStore.ts'
const layoutStoreData = useLayoutStore()
onMounted(() => {
    console.log('项目启动')
    const { theme } = storeToRefs(layoutStoreData)
    document.documentElement.setAttribute('data-theme', theme.value)
})
</script>

<style scoped lang="scss"></style>
